package mspbots.cw.business.core.users;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import mspbots.cw.business.core.BaseTenantEntity;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(value = "connectwise_user")
public class Users extends BaseTenantEntity {

    private Long cwUid;
    private Long departmentId;
    private String identifier;
    private String firstName;
    private String lastName;
    private String email;
    private String licenseClass;
    private Long tenantRoleId;
    private String tenantRoleName;

    private JsonNode skills;
    private JsonNode teamNames;
    private LocalDateTime updateDate;
    private Boolean inactiveFlag;

    private Integer minimumHours;
    private Integer dailyCapacity;
    private Integer hourlyRate;
    private String title;
    private String reportsToName;
    private String securityLocationName;
    private String typeName;
    private String serviceDefaultDepartmentName;
    private String workTypeName;
    private String serviceLocationName;
    private String securityRoleName;
    private LocalDateTime hireDate;
    private LocalDateTime updateTime;
    private LocalDateTime syncTime;
    private Long creator;
    private LocalDateTime createDate;
}
